package com.xyd.dao;

import com.xyd.bean.ChildCategory;

import java.util.List;

public interface ChildCategoryMapper {

    //通过parentid获取子类
    List<ChildCategory> getChildByPId(int Parentid);

   List<ChildCategory> getAllByParentId(Integer ParentId);
   //根据id获取详情
   ChildCategory getByChildid(int id);
   //根据id修改
    int updateById(ChildCategory childCategory);
    //根据id删除
    int delByChildid(int id);

    List<ChildCategory> getAllChild();
    int insertAll(ChildCategory childCategory);
}